package com.xjtu.project.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName orders
 */
@TableName(value ="orders")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "number")
    private String number;

    /**
     * 
     */
    @TableField(value = "userId")
    private Integer userId;

    /**
     * 
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 
     */
    @TableField(value = "addressId")
    private Integer addressId;

    /**
     * 
     */
    @TableField(value = "checkoutTime")
    private Date checkoutTime;

    /**
     * 
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 
     */
    @TableField(value = "orderTime")
    private LocalDateTime orderTime;

    /**
     * 
     */
    @TableField(value = "cancelReason")
    private String cancelReason;

    /**
     * 
     */
    @TableField(value = "completeTime")
    private LocalDateTime completeTime;
    @TableField(value = "remark")
    private String remark;
    @TableField(value = "consignee")
    private String consignee;
    @TableField(value = "phone")
    private String phone;
    @TableField(value = "address")
    private String address;
}